{% extends "app1/base.html" %}
{% load myfilters %}

{% block title %}
{{ title }}
{% endblock %}

{% block content %}
<h2>Python is good, {{ "Python is good"|rev }}</h2>
<h2>Original: 18612345678, pretty: {{ "18612345678"|fmtphone }}</h2>
<p>{{ total }} wom{{ total|pluralize:"a,e" }}n</p>
<ul>
{% for book in data %}
<li><a href="{% url 'app1:detail' book.pk %}">{% if forloop.first %}XXX: {% endif %} {{ book.name }}</a></li>
{% endfor %}
</ul>
{% endblock %}
